home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: tstevens@ix.netcom.com (Edward Stevens )
- Newsgroups: comp.lang.c
- Subject: char* string problem
- Date: 5 Jan 1996 03:56:14 GMT
- Organization: Netcom
- Message-ID: <4ci7gu$68r@cloner3.netcom.com>
- NNTP-Posting-Host: ix-wh3-16.ix.netcom.com
- X-NETCOM-Date: Thu Jan 04 7:56:14 PM PST 1996
-
- I need to prepend some switch characters to some strings passed
- to a main program which I have renamed for use as a function.
-
- The calling program looks like this:
-
- char* the_args[4];
- char* Aprefix = " -A";
- char* Bprefix = " -B";
- char* CPrefix = " -C";
- char* Dprexix = " -D";
-
- the_args[0] = "user_name";
- the_args[0] = strcat(Aprefix,the_args[0]);
-